package com.company.hotel.service.impl;

import com.company.hotel.dao.UsersMapper;
import com.company.hotel.model.pojo.User;
import com.company.hotel.service.UsersService;
import com.company.hotel.core.AbstractService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.HashMap;
import java.util.List;


/**
 * Created by CodeGenerator on 2018/06/11.
 */
@Service
@Transactional
public class UsersServiceImpl implements UsersService {
    @Resource
    private UsersMapper usersMapper;
    public List<User> findByUserId(int id){
        return usersMapper.findByUserId(id);
    }
    public List<User> findByUserName(HashMap map){
        return usersMapper.findByUserName(map);
    }
}
